﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MTodo.Model
{
    /// <summary>
    /// 单条提醒项
    /// </summary>
    public class MemoItem:ModelBase
    {       
#region Fields
        private Guid _itemID;
        private Guid _groupID;
        private string _memoText;
        private string _memoTitle;
        private bool _priority;
        private int _useFolder;
        private int _timeFolder;
        private DateTime _alarmTime;
        private int _alarmOffsetMinutes;

#endregion
        /// <summary>
        /// Item ID
        /// </summary>
        public Guid ItemID 
        {
            get { return this._itemID; }
            set
            {
                this._itemID = value;
                this.OnPropertyChanged("ItemID");
            }
        }
        /// <summary>
        /// Group ID
        /// </summary>
        public Guid GroupID 
        {
            get { return this._groupID; }
            set
            {
                this._groupID = value;
                this.OnPropertyChanged("GroupID");
            }
        }
        /// <summary>
        /// 记事的名称
        /// </summary>
        public string MemoText
        {
            get
            {
                return this._memoText;
            }
            set
            {
                this._memoText = value;
                this.OnPropertyChanged("MemoText");
            }
        }

        /// <summary>
        /// 记事的名称
        /// </summary>
        public string MemoTitle 
        {
            get
            {
                return this._memoTitle;
            }
            set
            {
                this._memoTitle = value;
                this.OnPropertyChanged("MemoTitle");
            }
        }

        /// <summary>
        /// 是否重要
        /// </summary>
        public bool Priority
        {
            get
            {
                return this._priority;
            }
            set
            {
                this._priority = value;
                this.OnPropertyChanged("Priority");
            }
        }

        /// <summary>
        /// 所属用户文件夹
        /// </summary>
        public int UserFolder
        {
            get
            {
                return this._useFolder;
            }
            set
            {
                this._useFolder = value;
                this.OnPropertyChanged("UserFolder");
            }
        }

        /// <summary>
        /// 所属时间文件夹
        /// </summary>
        public int TimeFolder
        {
            get
            {
                return this._timeFolder;
            }
            set
            {
                this._timeFolder = value;
                this.OnPropertyChanged("TimeFolder");
            }
        }
        /// <summary>
        /// 提醒时间
        /// </summary>
        public DateTime AlarmTime
        {
            get
            {
                return this._alarmTime;
            }
            set
            {
                this._alarmTime = value;
                this.OnPropertyChanged("AlarmTime");
            }
        }

        /// <summary>
        /// 提前提醒分钟数
        /// </summary>
        public int AlarmOffsetMinutes
        {
            get
            {
                return this._alarmOffsetMinutes;
            }
            set
            {
                this._alarmOffsetMinutes = value;
                this.OnPropertyChanged("AlarmOffsetMinutes");
            }
        }

    }
}
